package com.my.ycv51.ycinit.config;

/**
 * @author YCKJ0827
 */
public class ErrorCode {

    public static final int CW_CAMERA_SUCCESS = 75002000;

    //函数调用成功
    public static final int CW_FACE_OK = 26121000;
    //函数传入图像是否为空
    public static final int CW_FACE_FRAME_ERR = 26121001;
    //函数传入图像格式不支持
    public static final int CW_FACE_FORMAT_ERR = 26121002;
    //检测到没有人脸
    public static final int CW_FACE_NO_FACE = 26121003;
    //设置ROI参数失败
    public static final int CW_FACE_ROI_ERR = 26121004;
    //设置最小最大人脸失败
    public static final int CW_FACE_MINMAX_ERR = 26121005;
    //数据范围错误
    public static final int CW_FACE_RANGE_ERR = 26121006;

    //初始化时授权失败
    public static final int CW_FACE_UNAUTHORIZED_ERR = 26121007;
    //检测到未初始化
    public static final int CW_FACE_UNINITIALIZED_ERR = 26121008;
    //加载检测模型失败
    public static final int CW_FACE_DETECT_MODEL_ERR = 26121009;
    //加载关键点模型失败
    public static final int CW_FACE_KEYPT_MODEL_ERR = 26121010;
    //加载质量评估模型失败
    public static final int CW_FACE_QUALITY_MODEL_ERR = 26121011;
    //加载活体检测模型失败
    public static final int CW_FACE_LIVENESS_MODEL_ERR = 26121012;

    //检测失败
    public static final int CW_FACE_DET_ERR = 26121013;
    //取关键点失败
    public static final int CW_FACE_KEYPT_ERR = 26121014;
    //对齐人脸失败
    public static final int CW_FACE_ALIGN_ERR = 26121015;
    //质量评估失败
    public static final int CW_FACE_QUALITY_ERR = 26121016;
    //活体检测错误
    public static final int CW_FACE_LIVENESS_ERR = 26121017;
    //活体检测可见光和红外一对数据时间戳不匹配
    public static final int CW_FACE_TIMESTAMP_MATCH = 26121018;

    /**
     * 人脸质量检测错误码
     */
    // 默认值
    public static final int CW_FACE_QUALITY_DEFAULT = 26121030;
    //可见光图像通过检测
    public static final int CW_FACE_LIV_COLOR_PASS = 26121031;
    //人脸距离太近
    public static final int CW_FACE_LIV_DIST_TOO_CLOSE_ERR = 26121032;
    //人脸距离太远
    public static final int CW_FACE_LIV_DIST_TOO_FAR_ERR = 26121033;
    //人脸角度不满足要求
    public static final int CW_FACE_LIV_POSE_DET_FAIL_ERR = 26121034;
    //人脸清晰度不满足要求
    public static final int CW_FACE_LIV_FACE_CLARITY_DET_FAIL_ERR = 26121035;
    //检测到闭眼，仅在设置参数时eyeopen为true且检测到闭眼
    public static final int CW_FACE_LIV_VIS_EYE_CLOSE_ERR = 26121036;
    //检测到张嘴仅在设置参数时mouthopen为true且检测到多人时返回
    public static final int CW_FACE_LIV_VIS_MOUTH_OPEN_ERR = 26121037;
    //检测到人脸过亮，仅在设置参数时brightnessExc为true且人脸过亮时返回
    public static final int CW_FACE_LIV_VIS_BRIGHTNESS_EXC_ERR = 26121038;
    //检测到人脸过暗，仅在设置参数时brightnessINS为true且人脸过暗时返回
    public static final int CW_FACE_LIV_VIS_BRIGHTNESS_INS_ERR = 26121039;
    //检测到人脸置信度过低，仅在设置参数时confidence为true且人脸置信度过低时返回
    public static final int CW_FACE_LIV_VIS_FACE_LOW_CONF_ERR = 26121040;
    //检测到人脸存在遮挡，仅在设置参数时occlusion为true且检测到遮挡时返回
    public static final int CW_FACE_LIV_VIS_OCCLUSION_ERR = 26121041;
    //检测到黑框眼镜26121042，仅在设置参数时blackspec为true且检测到黑框眼镜时返回
    public static final int CW_FACE_LIV_VIS_BLACKSPEC_ERR = 26121042;
    //检测到墨镜，仅在设置参数时sunglass为true且检测到墨镜时返回
    public static final int CW_FACE_LIV_VIS_SUNGLASS_ERR = 26121043;
    //检测到口罩26121044,仅在设置参数时proceduremask>-1且检测到口罩时返回
    public static final int CW_FACE_LIV_VIS_PROCEDUREMASK_ERR = 26121044;

    /**
     * 活体检测错误码
     */
    // 默认值
    public static final int CW_FACE_LIVENESS_DEFAULT = 26121080;
    //检测为活体
    public static final int CW_FACE_LIV_IS_LIVE = 26121081;
    //检测为非活体
    public static final int CW_FACE_LIV_IS_UNLIVE_ERR = 26121082;
    //人脸肤色检测未通过
    public static final int CW_FACE_LIV_SKIN_FAILED_ERR = 26121083;
    //可见光和红外人脸不匹配
    public static final int CW_FACE_LIV_NO_PAIR_FACE_ERR = 26121084;
    //红外输入没有人脸
    public static final int CW_FACE_LIV_NIS_NO_FACE_ERR = 26121085;
    //可见光输入没有人脸
    public static final int CW_FACE_LIV_VIS_NO_FACE_ERR = 26121086;
}
